<?php
session_start();
/*
***********************************
CopyRight 2011 -Scout4all
***********************************
*/
include"./../functions.php";
if(isset($_SESSION['username'])){ 
$db_u_id=$_SESSION['u_id'];
$user_s_name=$_SESSION['username'];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>INDEX</title>

<link rel="stylesheet" href="css/menu_style.css" type="text/css" />
</head>

<body>
<div id='header'>
<ul>
<?php 
echo"<li>".$user_s_name." مرحبا بك </li>";
?>
<li><a href='logout.php'>تسجيل الخروج</a></li>
</ul>
</div>
<div id="menucontainer">
	<div id="menunav">
		<ul>
			<li><a href="index.php" title="css website navigation menus"  class="current"><span>الرئيسيه</span></a></li>
			<li><a href="users.php" title="css website navigation menus"><span>الاعضاء</span></a></li>
			<li><a href="artical.php" title="css website navigation menus"><span>المقالات</span></a></li>

		</ul>
	</div>
</div>
<div id="container">
  <div class="right">
  <ul>
  <li><a href="index.php">test</a></li>
  <li><a href="index.php">test</a></li>
  <li><a href="index.php">test</a></li> 
  </ul> 
  </div>
  <div class="left">
مرحبا بك
  </div>
</div>
</body>
</html>
<?php
}
else{
header("location: login.php");
}
?>